<html>
<head><meta charset="utf-8"><title>faster-feedback-loops · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/faster-feedback-loops.html">faster-feedback-loops</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="154744169"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/faster-feedback-loops/near/154744169" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dale Wijnand <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/faster-feedback-loops.html#154744169">(Jan 09 2019 at 18:03)</a>:</h4>
<p>Every time I hack in rustc I think I must be doing something wrong to make my feedback loops so slow.</p>
<p>To verify I tweaked some stable attributes right in <a href="https://github.com/rust-lang/rust/pull/56998" target="_blank" title="https://github.com/rust-lang/rust/pull/56998">https://github.com/rust-lang/rust/pull/56998</a> I ran <code>./x.py test --doc src/liballoc</code> which completed in 0:21:43.  Does that sound reasonable?</p>



<a name="154744280"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/faster-feedback-loops/near/154744280" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/faster-feedback-loops.html#154744280">(Jan 09 2019 at 18:05)</a>:</h4>
<p>that tracks with what i've experienced - you may want to try adding <code>--stage 1</code> to your call to cut out one layer of compiler builds</p>



<a name="154747542"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/faster-feedback-loops/near/154747542" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> blitzerr <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/faster-feedback-loops.html#154747542">(Jan 09 2019 at 18:49)</a>:</h4>
<p><span class="user-mention" data-user-id="125311">@Dale Wijnand</span>  I will also put a <code>-i</code> in there so that it builds incrementally.</p>



<a name="154747575"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/faster-feedback-loops/near/154747575" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/faster-feedback-loops.html#154747575">(Jan 09 2019 at 18:49)</a>:</h4>
<p>sometimes <code>--keep-stage 1</code> also helps if you've only made changes to tests for example</p>



<a name="154747852"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/faster-feedback-loops/near/154747852" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> blitzerr <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/faster-feedback-loops.html#154747852">(Jan 09 2019 at 18:53)</a>:</h4>
<p><span class="user-mention" data-user-id="125311">@Dale Wijnand</span>  As a rule of thumb, after making some changes, I would just run <br>
<code>./x.py check</code>, so that every thing type-checks without wasting much time, sort of early feedback. Then I would build the compiler upto stage 1 and build libstd with this new compiler.<br>
<code>./x.py build -i --stage 1 src/libstd</code><br>
But as <span class="user-mention" data-user-id="126931">@centril</span>  points out, if I am just modifying the tests, I will keep stage 1 compiler.</p>



<a name="154747923"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/faster-feedback-loops/near/154747923" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> blitzerr <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/faster-feedback-loops.html#154747923">(Jan 09 2019 at 18:54)</a>:</h4>
<p><a href="https://rust-lang.github.io/rustc-guide/how-to-build-and-run.html" target="_blank" title="https://rust-lang.github.io/rustc-guide/how-to-build-and-run.html">More details</a></p>



<a name="154750301"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/faster-feedback-loops/near/154750301" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dale Wijnand <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/faster-feedback-loops.html#154750301">(Jan 09 2019 at 19:26)</a>:</h4>
<p>Thank you, all. <br>
I'll make to use <code>-i</code>, I was operating under the assumption that it had stabilised and was on by default (and the docs were just stale). <br>
I'll keep learning how the various stages work so I know what to run. <br>
Does x.py check vs build/test suffer from <a href="https://github.com/rust-lang/cargo/issues/3501" target="_blank" title="https://github.com/rust-lang/cargo/issues/3501">https://github.com/rust-lang/cargo/issues/3501</a>?</p>



<a name="154750691"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/faster-feedback-loops/near/154750691" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/faster-feedback-loops.html#154750691">(Jan 09 2019 at 19:31)</a>:</h4>
<p>there's an entry in config.toml to turn on incremental all the time without the <code>-i</code> flag</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>